package app.fugema.shop.main.goods.adapter;

import android.content.Context;

import com.base.common.view.widget.imageView.GlideImageView;
import com.base.common.view.widget.imageView.ImageLoaderUtils;
import com.youth.banner.loader.ImageLoaderInterface;

import java.util.ArrayList;
import java.util.List;

public class MyBannerImageLoader implements ImageLoaderInterface<GlideImageView>
{
    private List<GlideImageView> imageViewList = new ArrayList<>();

    @Override
    public void displayImage(Context context, Object path, GlideImageView imageView)
    {
        ImageLoaderUtils.loadImage(imageView, null, path);
        imageViewList.add(imageView);
    }

    @Override
    public GlideImageView createImageView(Context context)
    {
        return new GlideImageView(context);
    }

    public List<GlideImageView> getImageViewList()
    {
        return imageViewList;
    }

}
